package com.asb.utils;

/**
 * 1.鞍山
 * 2.省分公司
 * 3.葫芦岛
 * 4.沈阳
 * 6.营口
 * 7.铁岭
 * 8.盘锦
 * 9.辽阳
 * 10.锦州
 * 12.阜新
 * 13.抚顺
 * 14.丹东
 * 15.大连
 * 16.朝阳
 * 17.本溪
 * @author lenovo
 * @create 2022/3/22 12:15
 */
public enum SpecialtyEnum {

    CS( "传输","CS"),
    GC( "公客","GC"),
    DH( "动环","DH"),
    JS( "建设","JS"),
    ZQ( "政企","ZQ"),
    SJ("数据","SJ"),
    WX("无线","WX"),
    HXW("核心网","HXW"),
    JK("监控","JK"),
    XL( "线路","XL"),
    ZHWH( "综合维护","ZHWH");

    private final String code;

    private final String name;

    private SpecialtyEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public static String getName(String code){
        for (SpecialtyEnum locationEnum : SpecialtyEnum.values()){
            if (locationEnum.getCode().equals(code)) {
                return locationEnum.name;
            }
        }
        return "";
    }

}
